import request from '@utils/request'
// 获取分类
const getCates = (params = {}) => request.get('/shop/goods/category/all', { params })
// 获取banner
const getHomeBanners = () => request.get('/banner/list')
// 获取花束分类
const getRecommends = () => request.post('/shop/goods/list', {
  categoryId: 164510
})
// 获取商品详细信息
const getItem = (id) => request.get('/shop/goods/detail?id=' + id)
// 获取商品列表
const getCateList = (params = {}) => request.post('/shop/goods/list', params)
export {
  getCates,
  getHomeBanners,
  getRecommends,
  getItem,
  getCateList
}
